//
//  MACRO.h
//  iPad-1
//
//  Created by Roy on 7/30/15.
//  Copyright (c) 2015 Roy. All rights reserved.
//

#import <Foundation/Foundation.h>
#ifndef iPad_1_MACRO_h
#define iPad_1_MACRO_h


#define SupperessPerformSelectorLeakWarining(Stuff)\
do{\
_Pragma("clang diagnostic push")\
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"")\
Stuff;\
_Pragma("clang diagnostic pop")\
}while(0)

typedef enum ProdType
{
    A = 0x08,
    B = 0x0A
    
}productType;

#define         PROJECTTYPE             @"ProjectType"
#define         PROJECTTYPES             @"ProjectTypes"


//TestScript
#define         ITEMNAMES               @"ItemName"
//#define         MAINITEM                @"MainItem"
#define         MAINITEMRESULT          @"MainItemResult"
#define         SUBITEM                 @"SubItem"
#define         GROUP                   @"Group"
#define         ISUPLOAD                @"isUpLoad"
#define         SUBITEMNAME             @"SubItemName"
#define         DEVICETYPE              @"Device"
#define         COMMAND                 @"Command"
#define         CMDTYPE                 @"CmdType"
#define         TIMEOUT                 @"TimeOut"
#define         SHOWVALUE               @"ShowValue"
#define         RESULTBUFFER            @"BufferKey"
#define         FUNCTION                @"Function"
#define         REFBUUFER               @"RefBuffer"
#define         ISNEEDALERT             @"isNeedAlert"
#define         ALERTMSG                @"alertMsg"
#define         READTO                  @"ReadTo"
#define         FROM                    @"fromSpec"
#define         TO                      @"toSpec"
#define         INFROM                  @"inFrom"
#define         INTO                    @"inTo"
#define         LOWERLIMIT              @"LowerLimit"
#define         UPPERLIMIT              @"UpperLimit"
#define         UNIT                    @"Unit"
#define         DELAYTIME               @"Delay"
#define         SPEC                    @"spec"
#define         RESULTFLAG              @"ResultFlag"
#define         REPEATTIMES             @"numberOfRepeat"
#define         ERRORCODE               @"ErrorCode"
#define         ISFAILCONTINUE          @"isFailContinue"
#define         ISFLAG                  @"isFlag"
#define         ISSKIP                  @"isSkip"
#define         ISCOF                   @"isCOF"
#define         RESULTISSTRINGVALUE     @"ResultIsStringValue"
#define         HELPINFO                @"HelpInfo"

//outViewIdentify
#define         IDNUMBER                @"ID"
#define         ITEMNAME                @"ITEM"
#define         TESTRESULT              @"TestResult"
#define         PDCAUPLOADFLAG          @"isPDCAUpload"
#define         FAILTIMECONTROL         @"FailTimesControl"
#define         DOLOOPTEST              @"DoLoopTest"

//pdca
#define         PASS                    @"PASS"
#define         FAIL                    @"FAIL"

#define         TXTLOGFULLPATH          @"TxtFullLogPath"

#define         TXTMODELOGFULLPATH          @"TxtModeFullLogPath"


#define         CSVHANDLE               @"csvHandle"

#define         TXTTIMELOGFULLPATH          @"TxtFullTimeLogPath"


#endif

static NSString* projectType;
static NSString* projectTypes;

